package com.roc.steelend.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.websocket.OnOpen;
import java.math.BigDecimal;

/**
 * 库存
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "inventory")
public class Inventory {

    @TableId(type = IdType.AUTO)
    private Integer inventoryId;
    private Integer smallTypeId;
    private Integer warehouseId;
    private String specification;
    private BigDecimal thickness;
    private BigDecimal long1;
    private BigDecimal wide;
    private BigDecimal high;
    private Integer quantity;
    private BigDecimal weight;

    @TableField(exist = false)
    private SmallType smallType;
    @TableField(exist = false)
    private Warehouse warehouse;
}
